package com.jumi.microservice.stock.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description 仓库商城库存申请详情
 * @ClassName StockCommodityApply
 * @Author Abel Yang
 * @Date 2020/8/29/029 17:43
 **/
@TableName(value = "stock_commodity_apply_detail", keepGlobalPrefix = true)
public class StockCommodityApplyDetailDO extends AbstractObject implements Serializable {
    private static final long serialVersionUID = 1806189890513841274L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "关联申请id")
    private Long applyId;

    @ApiModelProperty(value = "物料id")
    private Long materialId;

    @ApiModelProperty(value = "物料编码")
    private String materialCode;

    @ApiModelProperty(value = "物料商品id")
    private Long goodsId;

    @ApiModelProperty(value = "商城spuId")
    private Long spuId;

    @ApiModelProperty(value = "商城spuCode")
    private String spuCode;

    @ApiModelProperty(value = "商城skuId")
    private Long skuId;

    @ApiModelProperty(value = "商城skuCode")
    private String skuCode;

    @ApiModelProperty(value = "物料个数")
    private int materialNum;

    @ApiModelProperty(value = "实物库存申请量")
    private int stockNum;

    @ApiModelProperty(value = "预售库存申请量")
    private int preStockNum;

    private String createBy;
    private Date createTime;
    private Date updateTime;
    private String updateBy;
    private Boolean isDel;

    @Override
    public String toString() {
        return "StockCommodityApplyDetailDO{" +
                "id=" + id +
                ", applyId=" + applyId +
                ", materialId=" + materialId +
                ", materialCode='" + materialCode + '\'' +
                ", goodsId=" + goodsId +
                ", spuId=" + spuId +
                ", spuCode='" + spuCode + '\'' +
                ", skuId=" + skuId +
                ", skuCode='" + skuCode + '\'' +
                ", materialNum=" + materialNum +
                ", stockNum=" + stockNum +
                ", preStockNum=" + preStockNum +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", updateBy='" + updateBy + '\'' +
                ", isDel=" + isDel +
                '}';
    }
}
